package iwhr.nsbd.bean;

import iwhr.nsbd.run;

public class pump {
    private String name;//名字

    private double flow;//流量

    private double thisMonthWater;//本月预计抽水量

    private double proportion;//比例
    private double day;//运行天数
    private double sumWater;//累计抽水量
    private double maxFlow;//最大流量

    public pump() {
    }


   @Override
    public String toString() {


        return
                  name +
                "： 平均流量：" + String.format("%.1f", flow) +
                ", 运行天数：" + String.format("%.1f", day) +
                ", 累计调水量：" + (int) Math.ceil(sumWater) +
                ", 至本月底调水量：" + (int) Math.ceil(thisMonthWater)
                ;
    }


    public pump(String name, double flow, double day, double sumWater , double maxFlow,double thisMonthWater) {
        this.name = name;
        this.flow = flow;
        this.day = day;
        this.sumWater = sumWater;
        this.maxFlow = maxFlow;
        this.thisMonthWater = thisMonthWater;
    }

    public double getMaxFlow() {
        return maxFlow;
    }

    public void setMaxFlow(double maxFlow) {
        this.maxFlow = maxFlow;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getFlow() {
        return flow;
    }

    public void setFlow(double flow) {
        this.flow = flow;
    }

    public double getThisMonthWater() {
        return thisMonthWater;
    }

    public void setThisMonthWater(double thisMonthWater) {
        this.thisMonthWater = thisMonthWater;
    }

    public double getProportion() {
        return proportion;
    }

    public void setProportion(double proportion) {
        this.proportion = proportion;
    }

    public double getDay() {
        return day;
    }

    public void setDay(double day) {
        this.day = day;
    }

    public double getSumWater() {
        return sumWater;
    }

    public void setSumWater(double sumWater) {
        this.sumWater = sumWater;
    }
}


